<template>
  <div>
    <div v-if="renderRow.dictLabel.includes('t')">
      <div v-if="renderRow.dictLabel.includes('g')">&gt;</div>
      <div v-if="renderRow.dictLabel.includes('l')">&lt;</div>
    </div>
    <div v-else>{{ renderRow.dictLabel }}</div>
  </div>
</template>
<script lang="ts" setup>
import { ref, onMounted, reactive, inject } from "vue";
import type { TableColumn, TableRow, OptButton } from "@/utils/baTable"; //表格列行类型

// BuildAdmin将自动为此组件传递五个Props
interface Props {
  renderValue: any; // 单元格值
  renderRow: TableRow; // 当前行数据
  renderField: TableColumn; // 当前列数据
}

const props = withDefaults(defineProps<Props>(), {});

onMounted(() => {
  console.log(
    "TagVue单元格值",
    props.renderRow.dictLabel,
    props.renderField.prop
  );
});
</script>
<style lang="scss" scoped></style>
